import { http } from '@/utils/http'
import type { PageParams } from '@/types/global'
import type { HotResult } from '@/types/hot'
//新定义一个参数类型 &{}插入新的属性
type HotPageParams = PageParams & {
  // tap项目的id 默认为1
  subType?: string
}
export const GetHotRecommenAPI = (url: string, data?: HotPageParams) => {
  return http<HotResult>({
    url: url,
    method: 'GET',
    data,
  })

}
